#include <toftlib/net/TcpClient.hpp>
#include <boost/thread.hpp>

namespace toftlib
{
    class AsyncTcpClient : public TcpClient
    {
    public:
        virtual void Connect(const char* destination, const unsigned int port)
        {
            TcpClient::Connect(destination, port);

            boost::thread t(boost::bind(&boost::asio::io_service::run, &ioService));
        }
    };
}